function bookCreate()
{
	var item=new Object();
	item.type="bookCreate";
	item.param=new Object();
	item.param.memberId="1";
	item.param.bookName="testBook";
	item.param.author="testAuthor";
	item.result=new Object();
	item.result.owner=this;
	item.result.onResult=function(res)
	{
		Packages.log("bookCreate.onResult: "+res.returnObj, "debug");
		if (res.returnObj!=null)
		{
			this.owner.bookInfoVersionCreate(res.returnObj.toString());
		}
	}	
	Packages.services.RemotingCall.rtmpCaller(item);
}

function bookInfoVersionCreate(bookId:String)
{
	/*bookInfoVersionCreate(bookID, name, subTitle, abstract_, author,
    				authorIntro, publishPress, publishYear, chapterCount,
    				wordCount, completeStatus, website, url, memberID);*/								
	var item=new Object();
	item.type="bookInfoVersionCreate";
	item.param=new Object();
	item.param.bookId=bookId;
	item.param.name="testBook";
	item.param.subTitle="testSubTitle";
	item.param.abstract="testAbstract";
	item.param.author="testAuthor";
	item.param.authorIntro="testAuthorIntro";
	item.param.publishPress="testpublishPress";
	item.param.publishYear="2008-01-01";
	item.param.chapterCount="100";
	item.param.wordCount="30000000";
	item.param.completeStatus="1";
	item.param.website="http://www.testbook.com";
	item.param.url="http://www.testurl.com";
	item.param.memberId="1";

	item.result=new Object();
	item.result.owner=this;
	item.result.onResult=function(res)
	{
		Packages.log("bookInfoVersionCreate.onResult: "+res.returnObj, "debug");
		if (res.returnObj!=null)
		{
		}
	}	
	Packages.services.RemotingCall.rtmpCaller(item);
}

function bookCoverVersionUpload(bookId:String)
{
	/*bookCoverVersionUpload(bookID,memberID,image)*/
	var item=new Object();
	item.type="bookCoverVersionUpload";
	item.param=new Object();
	item.param.memberId="1";
	//image: http://localhost/jumpingNotes/download?type=3&subtype=3&
	//				uuid=9f9d0b2c-53c6-43da-9818-c3781c4cc229&sessionId=2ae7a71a-8cd8-418d-8475-5cb1c02dc216
	item.param.image="http://......"; 
	item.param.bookId=bookId;
	item.result=new Object();
	item.result.owner=this;
	item.result.onResult=function(res)
	{
		Packages.log("bookCoverVersionUpload.onResult: "+res.returnObj, "debug");
		if (res.returnObj!=null)
		{
		}
	}	
	Packages.services.RemotingCall.rtmpCaller(item);	
}

function bookCoverFilter(uuid:String)
{
	/*bookCoverVersionUpload(bookID,memberID,image)*/
	var item=new Object();
	item.type="bookCoverFilter";
	item.param=new Object();
	item.param.uuid="108f98e7-e070-4cad-9472-1c5175875639";
	item.param.subtype="1";
	//item.param.ratio="100";
	item.param.x="100";
	item.param.y="100";
	item.param.width="120";
	item.param.height="150";
	item.result=new Object();
	item.result.owner=this;
	item.result.onResult=function(res)
	{
		Packages.log("bookCoverFilter.onResult: "+res.returnObj, "debug");
		if (res.returnObj!=null)
		{
		}
	}	
	Packages.services.RemotingCall.rtmpCaller(item);	
}

function countMemberByFavoriteBook(bookId:String)
{
	var item=new Object();
	item.type="countMemberByFavoriteBook";
	item.param=new Object();
	item.param.bookId="1";
	item.result=new Object();
	item.result.owner=this;
	item.result.onResult=function(res)
	{
		Packages.log("countMemberByFavoriteBook.onResult: "+res.returnObj, "debug");
		if (res.returnObj!=null)
		{
		}
	}	
	Packages.services.RemotingCall.rtmpCaller(item);	
}
